<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:UML="omg.org/UML/1.4">
	<xsl:output method="xml" />
	<xsl:template match="@*|node()">
		<xsl:copy>
			<xsl:apply-templates select="@*|node()" />
		</xsl:copy>
	</xsl:template>
	<xsl:template match="@href">
		<xsl:attribute name="href">
			<xsl:value-of select="concat(substring-before(., 'xml.zip|'),'xmi#',substring-after(., 'xml.zip|'))" />
		</xsl:attribute>
	</xsl:template>
	<xsl:template match="UML:Package[@name = 'datatypes']" />
	<xsl:template match="UML:Package[@name = 'Component View']" />
	<xsl:template match="UML:Package[@name = 'org.andromda.profile']" />
	<xsl:template match="UML:Package[@name = 'andromda']" />
	<xsl:template match="UML:ModelElement.comment" />
	<xsl:template match="XMI.documentation|XMI.extension|XMI.extensions" />
	<xsl:template match="UML:Dependency" />
	<xsl:template match="UML:Classifier">
		<UML:DataType>
			<xsl:apply-templates select="@*" />
		</UML:DataType>
	</xsl:template>

</xsl:stylesheet>